package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh保险申请表Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by sxy on 2016/8/28.
 */
@Transactional
public interface Lsh保险申请表Repository extends JpaRepository<Lsh保险申请表Model, Integer>, JpaSpecificationExecutor<Lsh保险申请表Model> {
    @Modifying
    @Query("update Lsh保险申请表Model m set m.当前状态 = ?2 where m.保险编号 = ?1")
    int set当前状态By保险编号(int id, String reasonId);
}
